- return unless can?(current_user, :invite_member, project)

.js-invite-members-modal{ data: { is_project: 'true',
  access_levels: ProjectMember.permissible_access_level_roles(current_user, project).to_json,
  reload_page_on_submit: content_for(:reload_on_member_invite_success).present?.to_s,
  search_url: invite_search_namespace_project_project_members_url(namespace_id: project.namespace, project_id: project, format: :json),
  help_link: help_page_url('user/permissions.md') }.merge(common_invite_modal_dataset(project)) }
